Hyperbolic and sphere with python